package org.dromara.mall.config;


import org.dromara.mall.service.ITerFullSyncService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

@Component
public class RedisiInitCnfig {
    @Autowired
    private ITerFullSyncService fullSyncService;
    @PostConstruct
    public void init() {
        fullSyncService.scheduleFullSync();
        // 初始化逻辑
        System.out.println("Redis 初始化完成");
    }
}
